<template>
  <div class="footer">
    <el-button type="primary" @click="handle">{{text}}</el-button>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default() {
        return ''
      }
    }
  },
  methods: {
    handle() {
      this.$emit('handleOk')
    }
  }
}
</script>

<style scoped>
.footer {
  position: absolute;
  background-color: #fff;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
